import 'package:flutter/material.dart';

class TaskStats {
  TaskStats(this.total, this.completion);

  int total;
  int completion;
}

class Task extends ChangeNotifier {
  Task(this.id, this.name, this.stats);

  int id;
  String name;

  TaskStats stats;

  void increseCompletion() {
    stats.completion++;
    notifyListeners();
  }
}
